package com.xinqi.modules.homework.homework.convert;

import com.xinqi.modules.homework.homework.dto.rsp.CourseHomeworkFileResultDTO;
import com.xinqi.modules.homework.homework.dto.req.CourseHomeworkFileCreateDTO;
import com.xinqi.modules.homework.homework.dto.req.CourseHomeworkFileUpdateDTO;
import com.xinqi.modules.homework.homework.domain.CourseHomeworkFileEntity;
import com.xinqi.common.mapstruct.CommonConvertConfig;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 作业提交文件记录表转换
 *
 * @author: system
 * @date: 2023/03/08
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class CourseHomeworkFileConvert {

    public abstract CourseHomeworkFileEntity create(CourseHomeworkFileCreateDTO s);

    public abstract CourseHomeworkFileEntity update(CourseHomeworkFileUpdateDTO s, @MappingTarget CourseHomeworkFileEntity t);

    public abstract CourseHomeworkFileEntity update(CourseHomeworkFileUpdateDTO s);

    public abstract CourseHomeworkFileResultDTO convert(CourseHomeworkFileEntity s);
}
